﻿$(function () {
    $('.record-yesno input:checked').each(function () {
        $(this).parent().addClass('record-yesno-checked');
    });

    $('.record-yesno input:radio').change(function () {

        $(this).parent().addClass('record-yesno-checked');
        $('input[name=' + $(this).attr('name') + ']:not(:checked)').parent().removeClass('record-yesno-checked');
    });

});